repo-sync-openstack:
  file.recurse:
    - name: /etc/yum.repos.d/
    - source: salt://openstack/queen/repo/files/
    - user: root
    - group: root
    - file_mode: 644
    - dir_mode: 755
    - makedirs: True
    - clean: True
  cmd.run:
    - name: yum clean all && yum makecache && touch /etc/lock/yum-makecache.lock
    - unless: test -f  /etc/lock/yum-makecache.lock
